<?php
defined('BY_JYA') or exit('error');
$_RQ['op']=$_RQ['op']?$_RQ['op']:'basic';
$return=array();

if($_RQ['op']=='basic'){
	if($_RQ['postdata']){
		$postdata=get_postdata();
		$this->plugin_setting('basic',$postdata);
		exi('设置成功');
	}
	$return['item']=$this->plugin_setting('basic');
	$htmls=array(
		'type'=>'edit',
		'desc'=>'基本设置',
		'tabs'=>$tabs,
		'edit_tab'=>true,
		'edits'=>array(
			array(
				'title'=>'基本设置',
				'list'=>array(
					array('type'=>'tip','title'=>'拼多多开放平台,创建应用时填的,回调地址:<red>'.SITEROOT.'api/pdd_api.php</red>'),
					array('type'=>'image','title'=>'LOGO','name'=>'logo','help'=>''),
					array('type'=>'string','title'=>'client_id','name'=>'client_id','help'=>'拼多多开放平台,开放平台（https://open.pinduoduo.com/）后台申请后查看'),
					array('type'=>'string','title'=>'secret','name'=>'secret','help'=>'拼多多开放平台，开放平台（https://open.pinduoduo.com/）后台申请后查看'),
					array('type'=>'string','title'=>'推广位ID','name'=>'siteid','help'=>'拼多多进宝后台-效果数据-推广效果-推广位管理-对应的PID：示例：8726857_188738982'),
				)
			),
		
			
		),
	);
	$return['htmls']=$htmls;
	exi($return);
}
